// Demonstrates the use of String class methods

import java.util.Scanner;

public class Translate
{
   public static void main (String[] args)
   {
       String digits = new String("zero one  two  threefour five six  seveneightnine ");
       Scanner s = new Scanner(System.in);
       int d;
       String name;
       System.out.print("Enter a digit (0-9): ");
       d = s.nextInt();
       name = digits.substring(d*5, d*5+5);
       System.out.println("The name of digit " + d + " is " + name);

   }
}
